package com.jiyun.jiyunmall.product.dao;

import com.jiyun.jiyunmall.common.dao.BaseDao;
import com.jiyun.jiyunmall.product.dto.ProductAttrValueDTO;
import com.jiyun.jiyunmall.product.entity.ProductAttrValueEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 * spu属性值
 *
 * @author boge 71164376@qq.com
 * @since 1.0.0 2022-07-12
 */
@Mapper
public interface ProductAttrValueDao extends BaseDao<ProductAttrValueEntity> {

    Boolean batchSave(@Param("attrList") ArrayList<ProductAttrValueEntity> productAttrValueEntities);

    List<ProductAttrValueDTO> searchBaseAttrBySpuId(Long spuId);

}